package com.wzf.greattruth.rpc.frame;

import java.util.HashMap;

public class RpcContainer {
    private static final HashMap<String, Class<?>> EXPORTED_SERVICES = new HashMap<String, Class<?>>();

    public void register(Class<?> interfaceClass, Class<?> interfaceImplClass) {
        EXPORTED_SERVICES.put(interfaceClass.getName(), interfaceImplClass);
    }

    public Class<?> getTargetClass(String interfaceName) {
        return EXPORTED_SERVICES.get(interfaceName);
    }
}
